home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume8 / gnuplot1.10A / part06 < prev    next >
Encoding:
Text File  |  1989-09-09  |  53.6 KB  |  2,185 lines

  1. Newsgroups: comp.sources.misc
  2. From: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  3. Subject: v08i040: GnuPlot v1.10A (part 6 of 7)
  4. Reply-To: canoaf@ntvax.UUCP (Augustine Cano)
  5.  
  6. Posting-number: Volume 8, Issue 40
  7. Submitted-by: canoaf@ntvax.UUCP (Augustine Cano)
  8. Archive-name: gnuplot1.10A/part06
  9.  
  10. [OOPS!!!  I had to patch these after receiving them -- and managed to lose the
  11. name of the person who submitted them in the process.  Duh.  The name shown
  12. is a "best guess".  Submitter, please correct me.  ++bsa]
  13.  
  14. #! /bin/sh
  15. # This is a shell archive.  Remove anything before this line, then unpack
  16. # it by saving it into a file and typing "sh file".  To overwrite existing
  17. # files, type "sh file -c".  You can also feed this as standard input via
  18. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  19. # will see the following message at the end:
  20. #        "End of archive 6 (of 7)."
  21. # Contents:  docs docs/Makefile docs/README docs/gnuplot.doc
  22. #   docs/gnuplot.hlp
  23. # Wrapped by allbery@uunet on Sat Sep  9 13:47:24 1989
  24. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  25. if test ! -d 'docs' ; then
  26.     echo shar: Creating directory \"'docs'\"
  27.     mkdir 'docs'
  28. fi
  29. if test -f 'docs/Makefile' -a "${1}" != "-c" ; then 
  30.   echo shar: Will not clobber existing file \"'docs/Makefile'\"
  31. else
  32. echo shar: Extracting \"'docs/Makefile'\" \(618 characters\)
  33. sed "s/^X//" >'docs/Makefile' <<'END_OF_FILE'
  34. X# Makefile for GNUPLOT documentation
  35. X#
  36. X# troff a copy of gnuplot -ms if you've got a laser printer
  37. X# otherwise, just print gnuplot.nroff on a line printer
  38. X#
  39. XHELPDIR = /usr/local/help/gnuplot
  40. X
  41. Xgnuplot.ms: hlp2ms gnuplot.hlp
  42. X    ./hlp2ms < gnuplot.hlp > gnuplot.ms
  43. X
  44. Xhelptree: helptree.c
  45. X    cc -o helptree helptree.c
  46. X
  47. Xhlp2ms: hlp2ms.c
  48. X    cc -o hlp2ms hlp2ms.c
  49. X
  50. Xclean:
  51. X    rm -f gnuplot.ms gnuplot.hold hlp2ms helptree
  52. X
  53. X# Dependencies are hard (for me) so just rebuild everthing out of help tree
  54. X# (This assumes help tree is more recent than gnuplot.hlp)
  55. X
  56. Xhlp:
  57. X    - mv gnuplot.hlp gnuplot.hold
  58. X    ./helptree -f $(HELPDIR) > gnuplot.hlp
  59. END_OF_FILE
  60. if test 618 -ne `wc -c <'docs/Makefile'`; then
  61.     echo shar: \"'docs/Makefile'\" unpacked with wrong size!
  62. fi
  63. # end of 'docs/Makefile'
  64. fi
  65. if test -f 'docs/README' -a "${1}" != "-c" ; then 
  66.   echo shar: Will not clobber existing file \"'docs/README'\"
  67. else
  68. echo shar: Extracting \"'docs/README'\" \(1796 characters\)
  69. sed "s/^X//" >'docs/README' <<'END_OF_FILE'
  70. X---------Documentation README file------------
  71. XFor those of you not making documentation changes or installing
  72. Xthe help system just print out gnuplot.doc and ignore the remaining 
  73. Xinformation.
  74. X
  75. XThe documentation for gnuplot is intended to be maintained either
  76. Xby directly updating help files in the help tree or by updating a
  77. Xmaster .hlp file.  (The intent is to leave it up to the individual
  78. Xto choose how to maintain the documentation.)  The master .hlp file
  79. X(gnuplot.hlp) is a representation of the directory help tree.  The
  80. Xprogram helptree.c will either convert a help tree into a flat file
  81. Xor take such a flat file and put it back into a help tree.  The help
  82. Xtree format is used on unix and MSDOS machines in conjunction with
  83. Xthe standalone ``help'' program to provide the gnuplot help facility.
  84. XThe flat file gnuplot.hlp is used on VMS machines to provide the
  85. Xgnuplot help facility (using VMS help routines).
  86. X
  87. XUnix and MSDOS machines still need the gnuplot.hlp file, even though 
  88. Xit is not used directly in the help system.  For one thing, flat 
  89. Xfiles are easier to move to another machine.  For another, the file 
  90. Xgnuplot.doc (a printable manual) can be built out of gnuplot.hlp as 
  91. Xfollows:
  92. X
  93. Xhlp2ms <gnuplot.hlp >gnuplot.ms 
  94. Xnroff -ms gnuplot.ms |col -h >gnuplot.doc
  95. X
  96. XTo build a help system on unix for gnuplot first build Roland Stolfa's
  97. Xhelp program and install it in /usr/local/bin.  Gnuplot looks for either
  98. X/usr/local/bin/help or the environment symbol GNUHELP--if it is not
  99. Xpossible to install help in /usr/local/bin.  Stolfa's help system assumes
  100. Xa help tree under /usr/local/help or a directory pointed to by the 
  101. Xenvironment symbol HELPDIR.  The gnuplot help tree can be created out of 
  102. Xgnuplot.hlp using the following command:
  103. X
  104. Xhelptree -t /usr/local/help/gnuplot <gnuplot.hlp
  105. END_OF_FILE
  106. if test 1796 -ne `wc -c <'docs/README'`; then
  107.     echo shar: \"'docs/README'\" unpacked with wrong size!
  108. fi
  109. # end of 'docs/README'
  110. fi
  111. if test -f 'docs/gnuplot.doc' -a "${1}" != "-c" ; then 
  112.   echo shar: Will not clobber existing file \"'docs/gnuplot.doc'\"
  113. else
  114. echo shar: Extracting \"'docs/gnuplot.doc'\" \(27576 characters\)
  115. sed "s/^X//" >'docs/gnuplot.doc' <<'END_OF_FILE'
  116. X
  117. X
  118. X
  119. X
  120. X
  121. X
  122. X
  123. X
  124. X
  125. X
  126. X
  127. X
  128. X
  129. X
  130. X
  131. X
  132. X
  133. X
  134. X
  135. X
  136. X
  137. X
  138. X                 GNUPLOT
  139. X             An    Interactive Plotting Program
  140. X
  141. X
  142. X
  143. X              Thomas Williams &    Colin Kelley
  144. X
  145. X          Department of    Electrical Engineering
  146. X               Villanova University
  147. X               Villanova, PA  19085
  148. X                   May 26, 1989
  149. X
  150. X
  151. X
  152. X
  153. X
  154. X
  155. X
  156. X
  157. X
  158. X
  159. X
  160. X
  161. X
  162. X
  163. X
  164. X
  165. X
  166. X
  167. X
  168. X
  169. X
  170. X
  171. X
  172. X
  173. X
  174. X
  175. X
  176. X
  177. X
  178. X
  179. X                   May 26, 1989
  180. X
  181. X
  182. X
  183. X
  184. X
  185. X
  186. X
  187. X
  188. X
  189. X
  190. X
  191. X
  192. X
  193. X
  194. X
  195. X                 _I_N_T_R_O_D_U_C_T_I_O_N
  196. X
  197. X   GNUPLOT is a    command-driven interactive function plotting program.
  198. X   It is case sensitive    (commands and function names written in    lower-
  199. X   case    are not    the same as those written in CAPS).  All command names
  200. X   may be abbreviated, as long as the abbreviation is not ambiguous.
  201. X   Any number of commands may appear on    a line,    separated by semicolons
  202. X   (;).
  203. X
  204. X
  205. X
  206. X
  207. X   _1.  _c_l_e_a_r
  208. X
  209. X
  210. X   This    command    erases the current screen or output device as specified
  211. X   by 'set output'.  This usually generates a formfeed on hardcopy dev-
  212. X   ices.  Use 'set terminal' to    set the    device type.
  213. X
  214. X
  215. X
  216. X
  217. X   _2.  _e_x_i_t
  218. X
  219. X
  220. X   'exit', 'quit' and your computer's END-OF-FILE character will exit
  221. X   GNUPLOT.  All these commands    will clear the output device (as the
  222. X   'clear' command does) before    exiting.
  223. X
  224. X
  225. X
  226. X
  227. X   _3.  _e_x_p_r_e_s_s_i_o_n_s
  228. X
  229. X
  230. X
  231. X
  232. X
  233. X
  234. X    _3._1.  _f_u_n_c_t_i_o_n_s
  235. X
  236. X
  237. X
  238. X
  239. X
  240. X
  241. X
  242. X
  243. X
  244. X
  245. X                   May 26, 1989
  246. X
  247. X
  248. X
  249. X
  250. X
  251. X
  252. X                 GNUPLOT             Page 2
  253. X
  254. X
  255. X         _3._1._1.  _a_b_s
  256. X
  257. X
  258. X         This function returns the absolute    value of its argument.
  259. X         The returned value    is of the same type as the argument.
  260. X
  261. X         For complex arguments, abs(x) is defined as the length of
  262. X         x in the complex plane [i.e.  sqrt(real(x)**2 +
  263. X         imag(x)**2) ].
  264. X
  265. X
  266. X
  267. X         _3._1._2.  _a_c_o_s
  268. X
  269. X
  270. X         This function returns the arc cosine (inverse cosine) of
  271. X         its argument.  'acos' returns its argument    in radians.
  272. X
  273. X
  274. X
  275. X         _3._1._3.  _a_r_g
  276. X
  277. X
  278. X         This function returns the phase of    a complex number, in
  279. X         radians.
  280. X
  281. X
  282. X
  283. X         _3._1._4.  _a_s_i_n
  284. X
  285. X
  286. X         This function returns the arc sin (inverse    sin) of    its
  287. X         argument.    'asin' returns its argument in radians.
  288. X
  289. X
  290. X
  291. X         _3._1._5.  _a_t_a_n
  292. X
  293. X
  294. X         This function returns the arc tangent (inverse tangent) of
  295. X         its argument.  'atan' returns its argument    in radians.
  296. X
  297. X
  298. X
  299. X         _3._1._6.  _b_e_s_j_0
  300. X
  301. X
  302. X         This function returns the j0th Bessel function of its
  303. X         argument.    'besj0'    expects    its argument to    be in radians.
  304. X
  305. X
  306. X
  307. X
  308. X
  309. X
  310. X
  311. X                   May 26, 1989
  312. X
  313. X
  314. X
  315. X
  316. X
  317. X
  318. X                 GNUPLOT             Page 3
  319. X
  320. X
  321. X         _3._1._7.  _b_e_s_j_1
  322. X
  323. X
  324. X         This function returns the j1st Bessel function of its
  325. X         argument.    'besj1'    expects    its argument to    be in radians.
  326. X
  327. X
  328. X
  329. X         _3._1._8.  _b_e_s_y_0
  330. X
  331. X
  332. X         This function returns the y0th Bessel function of its
  333. X         argument.    'besy0'    expects    its argument to    be in radians.
  334. X
  335. X
  336. X
  337. X         _3._1._9.  _b_e_s_y_1
  338. X
  339. X
  340. X         This function returns the y1st Bessel function of its
  341. X         argument.    'besy1'    expects    its argument to    be in radians.
  342. X
  343. X
  344. X
  345. X         _3._1._1_0.  _c_e_i_l
  346. X
  347. X
  348. X         This function returns the largest integer not less    than
  349. X         its argument.  For    complex    numbers, 'ceil'    returns    the
  350. X         largest integer not less than the real part of its    argu-
  351. X         ment.
  352. X
  353. X
  354. X
  355. X         _3._1._1_1.  _c_o_s
  356. X
  357. X
  358. X         This function returns the cosine of its argument.    'cos'
  359. X         expects its argument to be    in radians.
  360. X
  361. X
  362. X
  363. X         _3._1._1_2.  _c_o_s_h
  364. X
  365. X
  366. X         This function returns the hyperbolic cosine of its    argu-
  367. X         ment.  'cosh' expects its argument    to be in radians.
  368. X
  369. X
  370. X
  371. X         _3._1._1_3.  _e_x_p
  372. X
  373. X
  374. X
  375. X
  376. X
  377. X                   May 26, 1989
  378. X
  379. X
  380. X
  381. X
  382. X
  383. X
  384. X                 GNUPLOT             Page 4
  385. X
  386. X
  387. X         This function returns the exponential function of its
  388. X         argument (e raised    to the power of    its argument).
  389. X
  390. X
  391. X
  392. X         _3._1._1_4.  _f_l_o_o_r
  393. X
  394. X
  395. X         This function returns the smallest    integer    not greater
  396. X         than its argument.     For complex numbers, 'floor' returns
  397. X         the smallest integer not greater than the real part of its
  398. X         argument.
  399. X
  400. X
  401. X
  402. X         _3._1._1_5.  _i_m_a_g
  403. X
  404. X
  405. X         This function returns the imaginary part of its argument
  406. X         as    a real number.
  407. X
  408. X
  409. X
  410. X         _3._1._1_6.  _i_n_t
  411. X
  412. X
  413. X         This function returns the integer part of its argument,
  414. X         truncated toward zero.
  415. X
  416. X
  417. X
  418. X         _3._1._1_7.  _l_o_g
  419. X
  420. X
  421. X         This function returns the natural logarithm (base e) of
  422. X         its argument.
  423. X
  424. X
  425. X
  426. X         _3._1._1_8.  _l_o_g_1_0
  427. X
  428. X
  429. X         This function returns the logarithm (base 10) of its argu-
  430. X         ment.
  431. X
  432. X
  433. X
  434. X         _3._1._1_9.  _r_e_a_l
  435. X
  436. X
  437. X         This function returns the real part of its    argument.
  438. X
  439. X
  440. X
  441. X
  442. X
  443. X                   May 26, 1989
  444. X
  445. X
  446. X
  447. X
  448. X
  449. X
  450. X                 GNUPLOT             Page 5
  451. X
  452. X
  453. X         _3._1._2_0.  _s_g_n
  454. X
  455. X
  456. X         This function returns 1 if    its argument is    positive, -1 if
  457. X         its argument is negative, and 0 if    its argument is    0.  If
  458. X         the argument is a complex value, the imaginary component
  459. X         is    ignored.
  460. X
  461. X
  462. X
  463. X         _3._1._2_1.  _s_i_n
  464. X
  465. X
  466. X         This function returns the sine of its argument.  'sin'
  467. X         expects its argument to be    in radians.
  468. X
  469. X
  470. X
  471. X         _3._1._2_2.  _s_i_n_h
  472. X
  473. X
  474. X         This function returns the hyperbolic sine of its argument.
  475. X         'sinh' expects its    argument to be in radians.
  476. X
  477. X
  478. X
  479. X         _3._1._2_3.  _s_q_r_t
  480. X
  481. X
  482. X         This function returns the square root of its argument.
  483. X
  484. X
  485. X
  486. X         _3._1._2_4.  _t_a_n
  487. X
  488. X
  489. X         This function returns the tangent of its argument.     'tan'
  490. X         expects its argument to be    in radians.
  491. X
  492. X
  493. X
  494. X         _3._1._2_5.  _t_a_n_h
  495. X
  496. X
  497. X         This function returns the hyperbolic tangent of its argu-
  498. X         ment.  'tanh' expects its argument    to be in radians.
  499. X
  500. X
  501. X
  502. X    _3._2.  _o_p_e_r_a_t_o_r_s
  503. X
  504. X
  505. X
  506. X
  507. X
  508. X
  509. X                   May 26, 1989
  510. X
  511. X
  512. X
  513. X
  514. X
  515. X
  516. X                 GNUPLOT             Page 6
  517. X
  518. X
  519. X         _3._2._1.  _b_i_n_a_r_y
  520. X
  521. X
  522. X         The following is a    list of    all the    binary operators and
  523. X         their usages:
  524. X
  525. X          Symbol         Example          Explanation
  526. X           **          a**b           exponentiation
  527. X           *          a*b           multiplication
  528. X           /          a/b           division
  529. X           %          a%b         * modulo
  530. X           +          a+b           addition
  531. X           -          a-b           subtraction
  532. X           ==          a==b           equality
  533. X           !=          a!=b           inequality
  534. X           &          a&b         * bitwise and
  535. X           ^          a^b         * bitwise exclusive or
  536. X           |          a|b         * bitwise inclusive or
  537. X           &&          a&&b         * logical and
  538. X           ||          a||b         * logical or
  539. X           ?:          a?b:c         * ternary operation
  540. X
  541. X         (*) Starred explanations indicate that the    operator
  542. X         requires integer arguments.
  543. X
  544. X         Logical AND (&&) and OR (||) short-circuit    the way    they do
  545. X         in    C.  That is, the second    && operand is not evaluated if
  546. X         the first is false; the second || operand is not evaluated
  547. X         if    the first is true.
  548. X
  549. X         The ternary operator evaluates its    first argument (a).  If
  550. X         it    is true    (non-zero) the second argument (b) is evaluated
  551. X         and returned, otherwise the third argument    (c) is
  552. X         evaluated and returned.
  553. X
  554. X
  555. X
  556. X         _3._2._2.  _u_n_a_r_y
  557. X
  558. X
  559. X         The following is a    list of    all the    unary operators    and
  560. X         their usages:
  561. X
  562. X          Symbol         Example          Explanation
  563. X           -          -a           unary minus
  564. X           ~          ~a         * one's complement
  565. X           !          !a         * logical negation
  566. X           !          a!         * factorial
  567. X
  568. X         (*) Starred explanations indicate that the    operator
  569. X         requires an integer argument.
  570. X
  571. X         The factorial operator returns a real number to allow a
  572. X
  573. X
  574. X
  575. X                   May 26, 1989
  576. X
  577. X
  578. X
  579. X
  580. X
  581. X
  582. X                 GNUPLOT             Page 7
  583. X
  584. X
  585. X         greater range.
  586. X
  587. X
  588. X
  589. X
  590. X   _4.  _h_e_l_p
  591. X
  592. X
  593. X   The 'help' command displays on-line help.  To specify information on
  594. X   a particular    topic use the syntax:
  595. X
  596. X       help <topic>
  597. X
  598. X   Help    is actually a separate program.     If help doesn't work for you,
  599. X   ask your administrator how to set up    the GNUHELP environment    vari-
  600. X   able    (and possibly the HELPDIR environment variable).
  601. X
  602. X   You may exit    the help utility and return to GNUPLOT by either press-
  603. X   ing <Return>(s) at the 'HELP    >' prompt or pressing your computer's
  604. X   END-OF-FILE character at any    help prompt.
  605. X
  606. X
  607. X
  608. X
  609. X   _5.  _l_o_a_d
  610. X
  611. X
  612. X   This    command    executes each line of the specified input file as if it
  613. X   had been typed in interactively.  Files created by the 'save' com-
  614. X   mand    can later be 'load'ed.    Any text file containing valid commands
  615. X   can be created and then executed by the 'load' command.  Files being
  616. X   'load'ed may    themselves contain 'load' commands.  Lines beginning
  617. X   with    # (or !     if using VMS) will be treated as comments and ignored.
  618. X
  619. X   The 'load' command must be the last command on the line.
  620. X
  621. X   Syntax:
  622. X       load    <input-file>
  623. X
  624. X   The name of the input file must be enclosed in quotes.
  625. X
  626. X   Examples:
  627. X
  628. X       load    'work.gnu'
  629. X       load    "func.dat"
  630. X
  631. X
  632. X
  633. X
  634. X   _6.  _p_a_u_s_e
  635. X
  636. X
  637. X   Pause is useful in conjunction with `load` files.  The command
  638. X
  639. X
  640. X
  641. X                   May 26, 1989
  642. X
  643. X
  644. X
  645. X
  646. X
  647. X
  648. X                 GNUPLOT             Page 8
  649. X
  650. X
  651. X   'pause' displays any    text associated    with the command and then waits
  652. X   the specified amount    of time.  This allows one to build a 'load'
  653. X   file    and control the    amount of time a finished graph    is displayed.
  654. X   The first argument is an expression that can    be -1, 0, 1, 2,    ...  -1
  655. X   will    wait until a carriage return is    hit.  0    won't pause at all, and
  656. X   1, 2, etc. will wait    the specified number of    seconds.
  657. X
  658. X   Note: Since pause is    not part of the    plot it    may interact with dif-
  659. X   ferent device drivers differently (depending    upon how text and
  660. X   graphics are    mixed).
  661. X
  662. X   Examples:
  663. X       pause -1    ! Wait until a carriage return is hit
  664. X       pause 3     ! Wait three seconds
  665. X       pause -1  "Hit return to continue"
  666. X       pause 10  "Isn't this pretty?  It's a cubic-spline."
  667. X
  668. X   Syntax:
  669. X       pause <expression> ["string"]
  670. X
  671. X
  672. X
  673. X
  674. X   _7.  _p_l_o_t
  675. X
  676. X
  677. X
  678. X
  679. X
  680. X
  681. X    _7._1.  _d_a_t_a__f_i_l_e
  682. X
  683. X
  684. X    Discrete data contained    in a file can displayed    by specifying
  685. X    the name of the    data file (enclosed in quotes) on the 'plot'
  686. X    command    line.
  687. X
  688. X    Data files should contain one data point per line.  A data
  689. X    point may be specified either as an X and Y value separated by
  690. X    blank space, or    as just    the Y value, in    which case the program
  691. X    will use the number of the coordinate as the X value.  Coordi-
  692. X    nate numbers starts at 0 and are incremented for each data
  693. X    point read.  Blank lines and lines beginning with # will be
  694. X    treated    as comments and    ignored.
  695. X
  696. X
  697. X    This example compares the data in the file population.dat to a
  698. X    theoretical curve:
  699. X
  700. X        pop(x) = 103*exp((1965-x)/10)
  701. X        plot [1960:1990] 'population.dat', pop(x)
  702. X
  703. X    The file population.dat    might contain:
  704. X
  705. X
  706. X
  707. X                   May 26, 1989
  708. X
  709. X
  710. X
  711. X
  712. X
  713. X
  714. X                 GNUPLOT             Page 9
  715. X
  716. X
  717. X     # Gnu population in Antarctica    since 1965
  718. X     1965    103
  719. X     1970    55
  720. X     1975    34
  721. X     1980    24
  722. X     1985    10
  723. X
  724. X
  725. X
  726. X    _7._2.  _r_a_n_g_e_s
  727. X
  728. X
  729. X    This option specifies the region of the    plot which will    be
  730. X    displayed.
  731. X
  732. X    Ranges may be provided on the 'plot' command line as synonyms
  733. X    for the    'set xrange' and 'set yrange' commands.
  734. X
  735. X    Syntax:
  736. X        [{dummy-var =} {xmin : xmax}] {    [{ymin : ymax}]    }
  737. X
  738. X    Where dummy-var    is the independent variable (the default is
  739. X    'x', but this may be changed with the 'set dummy' command) and
  740. X    the min    and max    terms can be expressions or constants.
  741. X
  742. X    Both the min and max terms are optional.  The ':' is also
  743. X    optional if neither a min nor a    max term is specified.    This
  744. X    allows '[]' to be used as a null range specification.
  745. X
  746. X    Specifying a Y range turns autoscaling OFF.
  747. X
  748. X
  749. X    Examples:
  750. X
  751. X    This uses current ranges:
  752. X        plot cos(x)
  753. X
  754. X    This sets the xrange only:
  755. X        plot [-10:30] sin(pi*x)/(pi*x)
  756. X
  757. X    This is    the same, but uses t as    the dummy-variable:
  758. X        plot [t    = -10 :30]  sin(pi*t)/(pi*t)
  759. X
  760. X    This sets both the x and yranges:
  761. X        plot [-pi:pi] [-3:3]  tan(x), 1/x
  762. X
  763. X    This sets only the yrange:
  764. X        plot []    [-2:sin(5)*-8] sin(x)**besj0(x)
  765. X
  766. X    This sets xmax and ymin    only:
  767. X        plot [:200] [-pi:]  exp(sin(x))
  768. X
  769. X
  770. X
  771. X
  772. X
  773. X                   May 26, 1989
  774. X
  775. X
  776. X
  777. X
  778. X
  779. X
  780. X                 GNUPLOT            Page 10
  781. X
  782. X
  783. X    _7._3.  _s_t_y_l_e
  784. X
  785. X
  786. X    Plots may be displayed in one of three styles: 'lines',
  787. X    'points', or 'impulses'.  The 'lines' style connects adjacent
  788. X    points with lines. The 'points'    style displays a small symbol
  789. X    at each    point.    The 'impulses' style displays a    vertical line
  790. X    from the X axis    to each    point.
  791. X
  792. X    Default    styles are chosen with the 'set    function style'    and
  793. X    'set data style' commands.
  794. X
  795. X    Syntax:
  796. X        with <style>
  797. X
  798. X    Where <style> is one of    'lines', 'points', or 'impulses'.
  799. X    These keywords may be abbreviated.
  800. X
  801. X
  802. X    Examples:
  803. X
  804. X    This plots sin(x) with impulses:
  805. X        plot sin(x) with impulses
  806. X
  807. X    This plots sin(x) with points, cos(x) default:
  808. X        plot [-9:30]  sin(x) w points, cos(x)
  809. X
  810. X    This plots tan(x) with the default function style, "data.1"
  811. X    with lines:
  812. X        plot []    [-2:5] tan(x), "data.1"    with l
  813. X
  814. X    This plots "leastsq.dat" with impulses:
  815. X        plot 'leastsq.dat' w i
  816. X
  817. X
  818. X
  819. X
  820. X   _8.  _p_r_i_n_t
  821. X
  822. X
  823. X   This    command    prints the value of <expression> to the    screen.
  824. X
  825. X   Syntax:
  826. X       print <expression>
  827. X
  828. X   See 'expressions'.
  829. X
  830. X
  831. X
  832. X
  833. X   _9.  _q_u_i_t
  834. X
  835. X
  836. X
  837. X
  838. X
  839. X                   May 26, 1989
  840. X
  841. X
  842. X
  843. X
  844. X
  845. X
  846. X                 GNUPLOT            Page 11
  847. X
  848. X
  849. X   'quit' is a synonym for 'exit'.  See    'exit'.
  850. X
  851. X
  852. X
  853. X
  854. X   _1_0.    _r_e_p_l_o_t
  855. X
  856. X
  857. X   'replot' repeats the    last 'plot' command.  This can be useful for
  858. X   viewing a plot with different 'set' options,    or when    generating the
  859. X   same    plot for several devices.
  860. X
  861. X
  862. X
  863. X
  864. X   _1_1.    _s_a_v_e
  865. X
  866. X
  867. X   This    command    saves either user-defined functions, variables,    or both
  868. X   to the specified file.
  869. X
  870. X   Syntax:
  871. X       save     {option} <filename>
  872. X
  873. X   Where <option> is either 'functions'    or 'variables'.     If no option
  874. X   is used GNUPLOT saves both functions    and variables.
  875. X
  876. X   'save'd files are written in    text format and    may be read by the
  877. X   'load' command.
  878. X
  879. X   The filename    must be    enclosed in quotes.
  880. X
  881. X   Examples:
  882. X
  883. X       save    "work.gnu"
  884. X       save    functions 'func.dat'
  885. X       save    var 'var.dat'
  886. X
  887. X
  888. X
  889. X
  890. X   _1_2.    _s_e_t-_s_h_o_w
  891. X
  892. X
  893. X   Set or show various internal    gnuplot    settings.
  894. X
  895. X
  896. X
  897. X
  898. X    _1_2._1.  _a_l_l
  899. X
  900. X
  901. X    The command 'show all' will display all    the set-show options
  902. X
  903. X
  904. X
  905. X                   May 26, 1989
  906. X
  907. X
  908. X
  909. X
  910. X
  911. X
  912. X                 GNUPLOT            Page 12
  913. X
  914. X
  915. X    currently in effect.
  916. X
  917. X    Syntax:
  918. X        show all
  919. X
  920. X
  921. X
  922. X    _1_2._2.  _a_u_t_o_s_c_a_l_e
  923. X
  924. X
  925. X    If autoscaling is set, the Y axis is automatically scaled to
  926. X    fit the    range of the function or data being plotted.  If autos-
  927. X    caling is not set, the current Y range is used.     See 'set
  928. X    yrange'.
  929. X
  930. X    Syntax:
  931. X        set autoscale
  932. X        set noautoscale
  933. X        show autoscale
  934. X
  935. X
  936. X
  937. X    _1_2._3.  _d_u_m_m_y
  938. X
  939. X
  940. X    By default, GNUPLOT assumes that the independent variable is
  941. X    'x' on the 'plot' command line.     'x' is    called the dummy vari-
  942. X    able because it    is just    a notation to indicate the independent
  943. X    variable.  The 'set dummy' command changes this    default    dummy
  944. X    variable name.    For example, you may find it more convenient to
  945. X    call the dummy variable    't' when plotting time functions:
  946. X
  947. X        set dummy t
  948. X        plot sin(t), cos(t)
  949. X
  950. X    Syntax:
  951. X        set dummy <dummy-var>
  952. X        show dummy
  953. X
  954. X
  955. X
  956. X    _1_2._4.  _f_u_n_c_t_i_o_n_s
  957. X
  958. X
  959. X    The 'show functions' command lists all user-defined functions
  960. X    and their definitions.
  961. X
  962. X    Syntax:
  963. X        show functions
  964. X
  965. X
  966. X
  967. X
  968. X
  969. X
  970. X
  971. X                   May 26, 1989
  972. X
  973. X
  974. X
  975. X
  976. X
  977. X
  978. X                 GNUPLOT            Page 13
  979. X
  980. X
  981. X    _1_2._5.  _l_o_g_s_c_a_l_e
  982. X
  983. X
  984. X    Log scaling may    be set on the X    and/or Y axis.
  985. X
  986. X    Syntax:
  987. X        set logscale <axes>
  988. X        set nologscale
  989. X        show logscale
  990. X
  991. X    Where <axes> is    either 'x', 'y', or 'xy'.
  992. X
  993. X
  994. X
  995. X    _1_2._6.  _p_o_l_a_r
  996. X
  997. X
  998. X    The 'set polar'    command    changes    the meaning of the plot    from
  999. X    rectangular coordinates    to polar coordinates.  In polar    coordi-
  1000. X    nates, the dummy variable (x) is an angle.  The    domain of this
  1001. X    angle is changed from whatever it was to [0:2*pi].
  1002. X
  1003. X    The command 'set nopolar' changes the meaning of the plot back
  1004. X    to the default rectangular coordinate system.  The domain of x
  1005. X    is changed from    whatever it was    to [-10:10].
  1006. X
  1007. X    While in polar coordinates the meaning of an expression    in x is
  1008. X    really r = f(x), where x is an angle of    rotation.  The plot,
  1009. X    however, is plotted on a rectangular grid.  Thus the displayed
  1010. X    ranges of x and    y are rectanglar values, while the command 'set
  1011. X    xrange'    refers to polar    values.
  1012. X
  1013. X    Syntax:
  1014. X        set polar
  1015. X         set nopolar          show polar
  1016. X
  1017. X
  1018. X
  1019. X    _1_2._7.  _o_f_f_s_e_t_s
  1020. X
  1021. X
  1022. X    The amount of the graph    that the plot takes up may be con-
  1023. X    trolled    to some    extent with the    'set offsets' command.    This
  1024. X    command    takes four arguments--left offset, right offset, top
  1025. X    offset and bottom offset.  By default, each offset is 0.  Left
  1026. X    and right offsets are given in units of    the x axis, while top
  1027. X    and bottom offsets are given in    units of the y axis.  The plot
  1028. X    of sin(x), displayed with offsets of 0,    0, 2, 2    will take up
  1029. X    1/3 of the displayed y axis.  Offsets are particularly useful
  1030. X    with polar coordinates as a means of compensating for aspect
  1031. X    ratio distortion.
  1032. X
  1033. X    Syntax:
  1034. X
  1035. X
  1036. X
  1037. X                   May 26, 1989
  1038. X
  1039. X
  1040. X
  1041. X
  1042. X
  1043. X
  1044. X                 GNUPLOT            Page 14
  1045. X
  1046. X
  1047. X        set offsets <expr>, <expr>, <expr>, <expr>
  1048. X        show offsets
  1049. X
  1050. X
  1051. X
  1052. X    _1_2._8.  _o_u_t_p_u_t
  1053. X
  1054. X
  1055. X    By default, plots are displayed    to the standard    output.     The
  1056. X    'set output' command redirects the displays to the specified
  1057. X    file or    device.
  1058. X
  1059. X    Syntax:
  1060. X        set output {filename}
  1061. X        show output
  1062. X
  1063. X    The filename must be enclosed in quotes.  If the filename is
  1064. X    omitted, output    will be    sent to    the standard output.
  1065. X
  1066. X
  1067. X
  1068. X    _1_2._9.  _s_a_m_p_l_e_s
  1069. X
  1070. X
  1071. X    The sampling rate of functions may be changed by the 'set sam-
  1072. X    ples' command.    By default, sampling is    set to 160 points.  A
  1073. X    higher sampling    rate will produce more accurate    plots, but will
  1074. X    take longer.  In generating plots, GNUPLOT will    use either the
  1075. X    sampling rate set or the resolution of the current output dev-
  1076. X    ice, whichever is lower.
  1077. X
  1078. X    Syntax:
  1079. X        set samples <expression>
  1080. X        show samples
  1081. X
  1082. X
  1083. X
  1084. X    _1_2._1_0.    _s_t_y_l_e
  1085. X
  1086. X
  1087. X    Plots may be displayed in one of three styles: 'lines',
  1088. X    'points', or 'impulses'.  The 'lines' style connects adjacent
  1089. X    points with lines. The 'points'    style displays a small symbol
  1090. X    at each    point.    The 'impulses' style displays a    vertical line
  1091. X    from the X axis    to each    point.
  1092. X
  1093. X    Default    styles are chosen with the 'set    function style'    and
  1094. X    'set data style' commands.  See    'plot' for information about
  1095. X    how to override    the default plotting style for individual func-
  1096. X    tions.
  1097. X
  1098. X    Syntax:
  1099. X        set function style <style>
  1100. X
  1101. X
  1102. X
  1103. X                   May 26, 1989
  1104. X
  1105. X
  1106. X
  1107. X
  1108. X
  1109. X
  1110. X                 GNUPLOT            Page 15
  1111. X
  1112. X
  1113. X        set data style <style>
  1114. X        show function style
  1115. X        show data style
  1116. X
  1117. X    Where style is either 'lines', 'points', or 'impulses'.
  1118. X
  1119. X
  1120. X
  1121. X    _1_2._1_1.    _t_e_r_m_i_n_a_l
  1122. X
  1123. X
  1124. X    GNUPLOT    supports many different    graphics devices.  Use the 'set
  1125. X    terminal' command to select the    type of    device for which GNU-
  1126. X    PLOT will produce output.   While your installation may    not
  1127. X    include    all of these, the following were available in the
  1128. X    source code at the time    this help file was written:
  1129. X
  1130. X    Machines:  IBM-PC's (ega, cga, hercules), ATT6300, CORONA325,
  1131. X           UNIXPC (att7300 or 3b1);
  1132. X    Terminals: AED512, AED767, HP2623A, HP7580B, REGIS, SELENAR,
  1133. X           TEK40xx, BBN    Bitgraph;
  1134. X    Printers:  LASERJET1, LASERJET2, LASERJET3, POSTSCRIPT,    QMS,
  1135. X           VECTRIX384;
  1136. X    Other:       UNIXPLOT.
  1137. X
  1138. X    Syntax:
  1139. X        set terminal {terminal-type}
  1140. X        show terminal
  1141. X
  1142. X    If <terminal-type> is omitted, GNUPLOT will list the available
  1143. X    terminal types.     <terminal-type> may be    abbreviated.
  1144. X
  1145. X    Use 'set output' to redirect this output to a file or device.
  1146. X
  1147. X
  1148. X
  1149. X    _1_2._1_2.    _v_a_r_i_a_b_l_e_s
  1150. X
  1151. X
  1152. X    The 'show variables' command lists all user-defined variables
  1153. X    and their values.
  1154. X
  1155. X    Syntax:
  1156. X        show variables
  1157. X
  1158. X
  1159. X
  1160. X    _1_2._1_3.    _v_e_r_s_i_o_n
  1161. X
  1162. X
  1163. X    Show the current version of gnuplot.  This is the same text
  1164. X    that appears when gnuplot starts up.  (There is    no SET VERSION
  1165. X    command, of course.)
  1166. X
  1167. X
  1168. X
  1169. X                   May 26, 1989
  1170. X
  1171. X
  1172. X
  1173. X
  1174. X
  1175. X
  1176. X                 GNUPLOT            Page 16
  1177. X
  1178. X
  1179. X    Syntax:        SHOW VERSION
  1180. X
  1181. X
  1182. X
  1183. X    _1_2._1_4.    _x_r_a_n_g_e
  1184. X
  1185. X
  1186. X    The 'set xrange' command sets the horizontal range which will
  1187. X    be displayed.
  1188. X
  1189. X    This range may also be specified on the    'plot' command line.
  1190. X
  1191. X    Syntax:
  1192. X        set xrange [{xmin : xmax}]
  1193. X
  1194. X    Where <xmin> and <xmax>    terms are expressions or constants.
  1195. X
  1196. X    Both the <xmin>    and <xmax> terms are optional.
  1197. X
  1198. X
  1199. X
  1200. X    _1_2._1_5.    _y_r_a_n_g_e
  1201. X
  1202. X
  1203. X    The 'set yrange' command sets the vertical range which will be
  1204. X    displayed.  This command turns autoscaling OFF.
  1205. X
  1206. X    This range may also be specified on the    'plot' command line.
  1207. X
  1208. X    Syntax:
  1209. X        set yrange [{ymin : ymax}]
  1210. X
  1211. X    Where <ymin> and <ymax>    terms are expressions or constants.
  1212. X
  1213. X    Both the <ymin>    and <ymax> terms are optional.
  1214. X
  1215. X
  1216. X
  1217. X    _1_2._1_6.    _z_e_r_o
  1218. X
  1219. X
  1220. X    GNUPLOT    will not plot a    point if its imaginary part is greater
  1221. X    in magnitude than the 'zero' threshold.     The default 'zero'
  1222. X    value is 1e-8.
  1223. X
  1224. X    Syntax:
  1225. X        set zero <expression>
  1226. X        show zero
  1227. X
  1228. X
  1229. X
  1230. X
  1231. X
  1232. X
  1233. X
  1234. X
  1235. X                   May 26, 1989
  1236. X
  1237. X
  1238. X
  1239. X
  1240. X
  1241. X
  1242. X                 GNUPLOT            Page 17
  1243. X
  1244. X
  1245. X   _1_3.    _s_h_e_l_l
  1246. X
  1247. X
  1248. X   The 'shell' command spawns an interactive shell.  To    return to GNU-
  1249. X   PLOT, type 'logout' if using    VMS, 'exit' or your END-OF-FILE    charac-
  1250. X   ter if using    Unix, or 'exit'    if using MS-DOS.
  1251. X
  1252. X   A single shell command may be spawned by preceding it with the !
  1253. X   character ($    if using VMS) at the beginning of a command line.  Con-
  1254. X   trol    will return immediately    to GNUPLOT after this command is exe-
  1255. X   cuted.  For example,
  1256. X
  1257. X    ! dir
  1258. X
  1259. X   prints a directory listing and then returns to GNUPLOT.
  1260. X
  1261. X
  1262. X
  1263. X
  1264. X   _1_4.    _s_t_a_r_t__u_p
  1265. X
  1266. X
  1267. X   When    GNUPLOT    is run,    it looks for an    initialization file to load.
  1268. X   This    file is    called '.gnuplot' on Unix systems, and 'GNUPLOT.INI' on
  1269. X   other systems.  If this file    is not found in    the current directory,
  1270. X   the program will look for it    in your    home directory (under MS-DOS,
  1271. X   the environment variable GNUPLOT should contain the name of this
  1272. X   directory).
  1273. X
  1274. X   If this file    is found, GNUPLOT executes the commands    in this    file.
  1275. X   This    is most    useful for setting your    terminal type and defining any
  1276. X   functions or    variables which    you use    often.    The variable 'pi' is
  1277. X   already defined for you.
  1278. X
  1279. X
  1280. X
  1281. X
  1282. X   _1_5.    _s_u_b_s_t_i_t_u_t_i_o_n
  1283. X
  1284. X
  1285. X   Command-line    substitution is    specified by a system command enclosed
  1286. X   in backquotes (`).  This command is spawned and the output it pro-
  1287. X   duces replaces the name of the command (and backquotes) on the com-
  1288. X   mand    line.
  1289. X
  1290. X   Newlines in the output produced by the spawned command are replaced
  1291. X   with    blanks.
  1292. X
  1293. X   Command-line    substitution can be used anywhere on the GNUPLOT com-
  1294. X   mand    line.
  1295. X
  1296. X
  1297. X   Example:
  1298. X
  1299. X
  1300. X
  1301. X                   May 26, 1989
  1302. X
  1303. X
  1304. X
  1305. X
  1306. X
  1307. X
  1308. X                 GNUPLOT            Page 18
  1309. X
  1310. X
  1311. X   This    will run the program 'leastsq' and substitute `leastsq`    on the
  1312. X   command line    with its output:
  1313. X
  1314. X    f(x) = `leastsq`
  1315. X
  1316. X   or, in VMS
  1317. X
  1318. X    f(x) = `run    leastsq`
  1319. X
  1320. X
  1321. X
  1322. X
  1323. X   _1_6.    _u_s_e_r__d_e_f_i_n_e_d
  1324. X
  1325. X
  1326. X   You may define your own functions and variables.  User-defined func-
  1327. X   tions and variables may be used anywhere.
  1328. X
  1329. X   User-defined    function syntax:
  1330. X       <function-name> ( <dummy-var> ) =  <expression>
  1331. X
  1332. X   Where <expression> is defined in terms of <dummy-var>.
  1333. X
  1334. X   User-defined    variable syntax:
  1335. X       <variable-name> = <constant-expression>
  1336. X
  1337. X   Examples:
  1338. X       w = 2
  1339. X       q = floor(tan(pi/2 - 0.1))
  1340. X       f(x) = sin(w*x)
  1341. X       sinc(x) = sin(pi*x)/(pi*x)
  1342. X       delta(t)    = (t ==    0)
  1343. X       ramp(t) = (t > 0) ? t : 0
  1344. X
  1345. X   The variable    'pi' is    already    defined    for you.
  1346. X
  1347. X   See 'show functions'    and 'show variables'.
  1348. X
  1349. X
  1350. X
  1351. X
  1352. X
  1353. X
  1354. X
  1355. X
  1356. X
  1357. X
  1358. X
  1359. X
  1360. X
  1361. X
  1362. X
  1363. X
  1364. X
  1365. X
  1366. X
  1367. X
  1368. X
  1369. X
  1370. X
  1371. X
  1372. X
  1373. X
  1374. X                 GNUPLOT                  i
  1375. X
  1376. X
  1377. X
  1378. X
  1379. X
  1380. X                Table of Contents
  1381. X
  1382. X
  1383. X
  1384. X
  1385. X   clear .........................................................    1
  1386. X
  1387. X   exit    ..........................................................    1
  1388. X
  1389. X   expressions ...................................................    1
  1390. X
  1391. X    functions ................................................    1
  1392. X
  1393. X         abs .................................................    2
  1394. X
  1395. X         acos ................................................    2
  1396. X
  1397. X         arg .................................................    2
  1398. X
  1399. X         asin ................................................    2
  1400. X
  1401. X         atan ................................................    2
  1402. X
  1403. X         besj0 ...............................................    2
  1404. X
  1405. X         besj1 ...............................................    3
  1406. X
  1407. X         besy0 ...............................................    3
  1408. X
  1409. X         besy1 ...............................................    3
  1410. X
  1411. X         ceil ................................................    3
  1412. X
  1413. X         cos .................................................    3
  1414. X
  1415. X         cosh ................................................    3
  1416. X
  1417. X         exp .................................................    4
  1418. X
  1419. X         floor ...............................................    4
  1420. X
  1421. X         imag ................................................    4
  1422. X
  1423. X         int .................................................    4
  1424. X
  1425. X         log .................................................    4
  1426. X
  1427. X         log10 ...............................................    4
  1428. X
  1429. X         real ................................................    4
  1430. X
  1431. X
  1432. X
  1433. X
  1434. X
  1435. X
  1436. X
  1437. X
  1438. X
  1439. X
  1440. X                 GNUPLOT                 ii
  1441. X
  1442. X
  1443. X         sgn .................................................    5
  1444. X
  1445. X         sin .................................................    5
  1446. X
  1447. X         sinh ................................................    5
  1448. X
  1449. X         sqrt ................................................    5
  1450. X
  1451. X         tan .................................................    5
  1452. X
  1453. X         tanh ................................................    5
  1454. X
  1455. X    operators ................................................    5
  1456. X
  1457. X         binary ..............................................    6
  1458. X
  1459. X         unary ...............................................    6
  1460. X
  1461. X   help    ..........................................................    7
  1462. X
  1463. X   load    ..........................................................    7
  1464. X
  1465. X   pause .........................................................    7
  1466. X
  1467. X   plot    ..........................................................    8
  1468. X
  1469. X    data_file ................................................    8
  1470. X
  1471. X    ranges ...................................................    9
  1472. X
  1473. X    style ....................................................   10
  1474. X
  1475. X   print .........................................................   10
  1476. X
  1477. X   quit    ..........................................................   11
  1478. X
  1479. X   replot ........................................................   11
  1480. X
  1481. X   save    ..........................................................   11
  1482. X
  1483. X   set-show ......................................................   11
  1484. X
  1485. X    all ......................................................   11
  1486. X
  1487. X    autoscale ................................................   12
  1488. X
  1489. X    dummy ....................................................   12
  1490. X
  1491. X    functions ................................................   12
  1492. X
  1493. X    logscale .................................................   13
  1494. X
  1495. X    polar ....................................................   13
  1496. X
  1497. X
  1498. X
  1499. X
  1500. X
  1501. X
  1502. X
  1503. X
  1504. X
  1505. X
  1506. X                 GNUPLOT                iii
  1507. X
  1508. X
  1509. X    offsets    ..................................................   13
  1510. X
  1511. X    output ...................................................   14
  1512. X
  1513. X    samples    ..................................................   14
  1514. X
  1515. X    style ....................................................   14
  1516. X
  1517. X    terminal .................................................   15
  1518. X
  1519. X    variables ................................................   15
  1520. X
  1521. X    version    ..................................................   15
  1522. X
  1523. X    xrange ...................................................   16
  1524. X
  1525. X    yrange ...................................................   16
  1526. X
  1527. X    zero .....................................................   16
  1528. X
  1529. X   shell .........................................................   17
  1530. X
  1531. X   start_up ......................................................   17
  1532. X
  1533. X   substitution    ..................................................   17
  1534. X
  1535. X   user_defined    ..................................................   18
  1536. X
  1537. X
  1538. X
  1539. X
  1540. X
  1541. X
  1542. X
  1543. X
  1544. X
  1545. X
  1546. X
  1547. X
  1548. X
  1549. X
  1550. X
  1551. X
  1552. X
  1553. X
  1554. X
  1555. X
  1556. X
  1557. X
  1558. X
  1559. X
  1560. X
  1561. X
  1562. X
  1563. X
  1564. X
  1565. X                   May 26, 1989
  1566. X
  1567. X
  1568. END_OF_FILE
  1569. echo shar: 544 control characters may be missing from \"'docs/gnuplot.doc'\"
  1570. if test 27576 -ne `wc -c <'docs/gnuplot.doc'`; then
  1571.     echo shar: \"'docs/gnuplot.doc'\" unpacked with wrong size!
  1572. fi
  1573. # end of 'docs/gnuplot.doc'
  1574. fi
  1575. if test -f 'docs/gnuplot.hlp' -a "${1}" != "-c" ; then 
  1576.   echo shar: Will not clobber existing file \"'docs/gnuplot.hlp'\"
  1577. else
  1578. echo shar: Extracting \"'docs/gnuplot.hlp'\" \(19621 characters\)
  1579. sed "s/^X//" >'docs/gnuplot.hlp' <<'END_OF_FILE'
  1580. X
  1581. X GNUPLOT is a command-driven interactive function plotting program.  It
  1582. X is case sensitive (commands and function names written in lowercase
  1583. X are not the same as those written in CAPS).  All command names may be
  1584. X abbreviated, as long as the abbreviation is not ambiguous.  Any number
  1585. X of commands may appear on a line, separated by semicolons (;).
  1586. X
  1587. X Type the EOF character (^D for UNIX, ^Z for DOS) to exit the help system
  1588. X from any level and return to GNUPLOT.  <RETURN> goes back to the previous
  1589. X level and to GNUPLOT from top level help.
  1590. X1 clear
  1591. X This command erases the current screen or output device as specified
  1592. X by 'set output'.  This usually generates a formfeed on hardcopy
  1593. X devices.  Use 'set terminal' to set the device type.
  1594. X1 exit
  1595. X 'exit', 'quit' and your computer's END-OF-FILE character will exit
  1596. X GNUPLOT.  All these commands will clear the output device (as the
  1597. X 'clear' command does) before exiting.
  1598. X1 expressions
  1599. X2 functions
  1600. X3 abs
  1601. X This function returns the absolute value of its argument.  The
  1602. X returned value is of the same type as the argument.
  1603. X
  1604. X For complex arguments, abs(x) is defined as the length of x in the
  1605. X complex plane [i.e.  sqrt(real(x)**2 + imag(x)**2) ].
  1606. X3 acos
  1607. X This function returns the arc cosine (inverse cosine) of its
  1608. X argument.  'acos' returns its argument in radians.
  1609. X3 arg
  1610. X This function returns the phase of a complex number, in radians.
  1611. X3 asin
  1612. X This function returns the arc sin (inverse sin) of its argument.
  1613. X 'asin' returns its argument in radians.
  1614. X3 atan
  1615. X This function returns the arc tangent (inverse tangent) of its
  1616. X argument.  'atan' returns its argument in radians.
  1617. X3 besj0
  1618. X This function returns the j0th Bessel function of its argument.
  1619. X 'besj0' expects its argument to be in radians.
  1620. X3 besj1
  1621. X This function returns the j1st Bessel function of its argument.
  1622. X 'besj1' expects its argument to be in radians.
  1623. X3 besy0
  1624. X This function returns the y0th Bessel function of its argument.
  1625. X 'besy0' expects its argument to be in radians.
  1626. X3 besy1
  1627. X This function returns the y1st Bessel function of its argument.
  1628. X 'besy1' expects its argument to be in radians.
  1629. X3 ceil
  1630. X This function returns the largest integer not less than its
  1631. X argument.  For complex numbers, 'ceil' returns the largest integer
  1632. X not less than the real part of its argument.
  1633. X3 cos
  1634. X This function returns the cosine of its argument.  'cos' expects its
  1635. X argument to be in radians.
  1636. X3 cosh
  1637. X This function returns the hyperbolic cosine of its argument.
  1638. X 'cosh' expects its argument to be in radians.
  1639. X3 exp
  1640. X This function returns the exponential function of its argument
  1641. X (e raised to the power of its argument).
  1642. X3 floor
  1643. X This function returns the smallest integer not greater than its
  1644. X argument.  For complex numbers, 'floor' returns the smallest
  1645. X integer not greater than the real part of its argument.
  1646. X3 imag
  1647. X This function returns the imaginary part of its argument as a real number.
  1648. X3 int
  1649. X This function returns the integer part of its argument, truncated
  1650. X toward zero.
  1651. X3 log
  1652. X This function returns the natural logarithm (base e) of its
  1653. X argument.
  1654. X3 log10
  1655. X This function returns the logarithm (base 10) of its argument.
  1656. X3 real
  1657. X This function returns the real part of its argument.
  1658. X3 sgn
  1659. X This function returns 1 if its argument is positive, -1 if its
  1660. X argument is negative, and 0 if its argument is 0.  If the argument
  1661. X is a complex value, the imaginary component is ignored.
  1662. X3 sin
  1663. X This function returns the sine of its argument.  'sin' expects its
  1664. X argument to be in radians.
  1665. X3 sinh
  1666. X This function returns the hyperbolic sine of its argument.  'sinh'
  1667. X expects its argument to be in radians.
  1668. X3 sqrt
  1669. X This function returns the square root of its argument.
  1670. X3 tan
  1671. X This function returns the tangent of its argument.  'tan' expects
  1672. X its argument to be in radians.
  1673. X3 tanh
  1674. X This function returns the hyperbolic tangent of its argument.
  1675. X 'tanh' expects its argument to be in radians.
  1676. X2 operators
  1677. X3 binary
  1678. X The following is a list of all the binary operators and their
  1679. X usages:
  1680. X
  1681. X  Symbol     Example      Explanation
  1682. X   **          a**b          exponentiation
  1683. X   *           a*b           multiplication
  1684. X   /           a/b           division
  1685. X   %           a%b         * modulo
  1686. X   +           a+b           addition
  1687. X   -           a-b           subtraction
  1688. X   ==          a==b          equality
  1689. X   !=          a!=b          inequality
  1690. X   &           a&b         * bitwise and
  1691. X   ^           a^b         * bitwise exclusive or
  1692. X   |           a|b         * bitwise inclusive or
  1693. X   &&          a&&b        * logical and
  1694. X   ||          a||b        * logical or
  1695. X   ?:          a?b:c       * ternary operation
  1696. X
  1697. X (*) Starred explanations indicate that the operator requires
  1698. X integer arguments.
  1699. X
  1700. X Logical AND (&&) and OR (||) short-circuit the way they do in C.
  1701. X That is, the second && operand is not evaluated if the first is
  1702. X false; the second || operand is not evaluated if the first is true.
  1703. X
  1704. X The ternary operator evaluates its first argument (a).  If it is
  1705. X true (non-zero) the second argument (b) is evaluated and returned,
  1706. X otherwise the third argument (c) is evaluated and returned.
  1707. X3 unary
  1708. X The following is a list of all the unary operators and their
  1709. X usages:
  1710. X
  1711. X  Symbol     Example      Explanation
  1712. X   -           -a            unary minus
  1713. X   ~           ~a          * one's complement
  1714. X   !           !a          * logical negation
  1715. X   !           a!          * factorial
  1716. X
  1717. X (*) Starred explanations indicate that the operator requires an
  1718. X integer argument.
  1719. X
  1720. X The factorial operator returns a real number to allow a greater range.
  1721. X1 help
  1722. X The 'help' command displays on-line help.  To specify information on a
  1723. X particular topic use the syntax:
  1724. X
  1725. X     help <topic>
  1726. X
  1727. X Help is actually a separate program.  If help doesn't work for you, ask
  1728. X your administrator how to set up the GNUHELP environment variable (and
  1729. X possibly the HELPDIR environment variable).
  1730. X
  1731. X You may exit the help utility and return to GNUPLOT by either pressing
  1732. X <Return>(s) at the 'HELP >' prompt or pressing your computer's END-OF-FILE
  1733. X character at any help prompt.
  1734. X1 load
  1735. X This command executes each line of the specified input file as if it
  1736. X had been typed in interactively.  Files created by the 'save' command
  1737. X can later be 'load'ed.  Any text file containing valid commands can be
  1738. X created and then executed by the 'load' command.  Files being 'load'ed
  1739. X may themselves contain 'load' commands.  Lines beginning with # (or !
  1740. X if using VMS) will be treated as comments and ignored.
  1741. X
  1742. X The 'load' command must be the last command on the line.
  1743. X
  1744. X Syntax:
  1745. X         load <input-file>
  1746. X
  1747. X The name of the input file must be enclosed in quotes.
  1748. X
  1749. X Examples:
  1750. X
  1751. X         load 'work.gnu'
  1752. X         load "func.dat"
  1753. X1 pause
  1754. X Pause is useful in conjunction with `load` files.  The command 'pause'
  1755. X displays any text associated with the command and then waits the
  1756. X specified amount of time.  This allows one to build a 'load' file
  1757. X and control the amount of time a finished graph is displayed.  The
  1758. X first argument is an expression that can be -1, 0, 1, 2, ...  -1
  1759. X will wait until a carriage return is hit.  0 won't pause at all, and
  1760. X 1, 2, etc. will wait the specified number of seconds.
  1761. X
  1762. X Note: Since pause is not part of the plot it may interact with
  1763. X different device drivers differently (depending upon how text and
  1764. X graphics are mixed).
  1765. X
  1766. X Examples:
  1767. X         pause -1    ! Wait until a carriage return is hit
  1768. X         pause 3     ! Wait three seconds
  1769. X         pause -1  "Hit return to continue"
  1770. X         pause 10  "Isn't this pretty?  It's a cubic-spline."
  1771. X
  1772. X Syntax:
  1773. X         pause <expression> ["string"]
  1774. X1 plot
  1775. X2 data_file
  1776. X Discrete data contained in a file can displayed by specifying the
  1777. X name of the data file (enclosed in quotes) on the 'plot' command
  1778. X line.
  1779. X
  1780. X Data files should contain one data point per line.  A data point may
  1781. X be specified either as an X and Y value separated by blank space, or
  1782. X as just the Y value, in which case the program will use the number
  1783. X of the coordinate as the X value.  Coordinate numbers starts at 0
  1784. X and are incremented for each data point read.  Blank lines and lines
  1785. X beginning with # will be treated as comments and ignored.
  1786. X
  1787. X
  1788. X This example compares the data in the file population.dat to a
  1789. X theoretical curve:
  1790. X
  1791. X         pop(x) = 103*exp((1965-x)/10)
  1792. X         plot [1960:1990] 'population.dat', pop(x)
  1793. X
  1794. X The file population.dat might contain:
  1795. X
  1796. X  # Gnu population in Antarctica since 1965
  1797. X  1965   103
  1798. X  1970   55
  1799. X  1975   34
  1800. X  1980   24
  1801. X  1985   10
  1802. X2 ranges
  1803. X This option specifies the region of the plot which will be displayed.
  1804. X
  1805. X Ranges may be provided on the 'plot' command line as synonyms for
  1806. X the 'set xrange' and 'set yrange' commands.
  1807. X
  1808. X Syntax:
  1809. X         [{dummy-var =} {xmin : xmax}] { [{ymin : ymax}] }
  1810. X
  1811. X Where dummy-var is the independent variable (the default is 'x',
  1812. X but this may be changed with the 'set dummy' command) and the min
  1813. X and max terms can be expressions or constants.
  1814. X
  1815. X Both the min and max terms are optional.  The ':' is also optional
  1816. X if neither a min nor a max term is specified.  This allows '[]' to
  1817. X be used as a null range specification.
  1818. X
  1819. X Specifying a Y range turns autoscaling OFF.
  1820. X
  1821. X
  1822. X Examples:
  1823. X
  1824. X This uses current ranges:
  1825. X         plot cos(x)
  1826. X
  1827. X This sets the xrange only:
  1828. X         plot [-10:30] sin(pi*x)/(pi*x)
  1829. X
  1830. X This is the same, but uses t as the dummy-variable:
  1831. X         plot [t = -10 :30]  sin(pi*t)/(pi*t)
  1832. X
  1833. X This sets both the x and yranges:
  1834. X         plot [-pi:pi] [-3:3]  tan(x), 1/x
  1835. X
  1836. X This sets only the yrange:
  1837. X         plot [] [-2:sin(5)*-8] sin(x)**besj0(x)
  1838. X
  1839. X This sets xmax and ymin only:
  1840. X         plot [:200] [-pi:]  exp(sin(x))
  1841. X2 style
  1842. X Plots may be displayed in one of three styles: 'lines', 'points', or
  1843. X 'impulses'.  The 'lines' style connects adjacent points with lines.
  1844. X The 'points' style displays a small symbol at each point.  The
  1845. X 'impulses' style displays a vertical line from the X axis to each
  1846. X point.
  1847. X
  1848. X Default styles are chosen with the 'set function style' and
  1849. X 'set data style' commands.
  1850. X
  1851. X Syntax:
  1852. X         with <style>
  1853. X
  1854. X Where <style> is one of 'lines', 'points', or 'impulses'.  These
  1855. X keywords may be abbreviated.
  1856. X
  1857. X
  1858. X Examples:
  1859. X
  1860. X This plots sin(x) with impulses:
  1861. X         plot sin(x) with impulses
  1862. X
  1863. X This plots sin(x) with points, cos(x) default:
  1864. X         plot [-9:30]  sin(x) w points, cos(x)
  1865. X
  1866. X This plots tan(x) with the default function style, "data.1" with lines:
  1867. X         plot [] [-2:5] tan(x), "data.1" with l
  1868. X
  1869. X This plots "leastsq.dat" with impulses:
  1870. X         plot 'leastsq.dat' w i
  1871. X1 print
  1872. X This command prints the value of <expression> to the screen.
  1873. X
  1874. X Syntax:
  1875. X         print <expression>
  1876. X
  1877. X See 'expressions'.
  1878. X1 quit
  1879. X 'quit' is a synonym for 'exit'.  See 'exit'.
  1880. X1 replot
  1881. X 'replot' repeats the last 'plot' command.  This can be useful for
  1882. X viewing a plot with different 'set' options, or when generating the
  1883. X same plot for several devices.
  1884. X1 save
  1885. X This command saves either user-defined functions, variables, or both
  1886. X to the specified file.
  1887. X
  1888. X Syntax:
  1889. X         save  {option} <filename>
  1890. X
  1891. X Where <option> is either 'functions' or 'variables'.  If no option is
  1892. X used GNUPLOT saves both functions and variables.
  1893. X
  1894. X 'save'd files are written in text format and may be read by the 'load'
  1895. X command.
  1896. X
  1897. X The filename must be enclosed in quotes.
  1898. X
  1899. X Examples:
  1900. X
  1901. X         save "work.gnu"
  1902. X         save functions 'func.dat'
  1903. X         save var 'var.dat'
  1904. X1 set-show
  1905. X Set or show various internal gnuplot settings.
  1906. X2 all
  1907. X The command 'show all' will display all the set-show options
  1908. X currently in effect.
  1909. X
  1910. X Syntax:
  1911. X         show all
  1912. X2 autoscale
  1913. X If autoscaling is set, the Y axis is automatically scaled to fit the
  1914. X range of the function or data being plotted.  If autoscaling is not
  1915. X set, the current Y range is used.  See 'set yrange'.
  1916. X
  1917. X Syntax:
  1918. X         set autoscale
  1919. X         set noautoscale
  1920. X         show autoscale
  1921. X2 dummy
  1922. X By default, GNUPLOT assumes that the independent variable is 'x' on
  1923. X the 'plot' command line.  'x' is called the dummy variable because
  1924. X it is just a notation to indicate the independent variable.  The
  1925. X 'set dummy' command changes this default dummy variable name.  For
  1926. X example, you may find it more convenient to call the dummy variable
  1927. X 't' when plotting time functions:
  1928. X
  1929. X         set dummy t
  1930. X         plot sin(t), cos(t)
  1931. X
  1932. X Syntax:
  1933. X         set dummy <dummy-var>
  1934. X         show dummy
  1935. X2 functions
  1936. X The 'show functions' command lists all user-defined functions and
  1937. X their definitions.
  1938. X
  1939. X Syntax:
  1940. X         show functions
  1941. X2 logscale
  1942. X Log scaling may be set on the X and/or Y axis.
  1943. X
  1944. X Syntax:
  1945. X         set logscale <axes>
  1946. X         set nologscale
  1947. X         show logscale
  1948. X
  1949. X Where <axes> is either 'x', 'y', or 'xy'.
  1950. X2 polar
  1951. X The 'set polar' command changes the meaning of the plot from
  1952. X rectangular coordinates to polar coordinates.  In polar
  1953. X coordinates, the dummy variable (x) is an angle.  The domain
  1954. X of this angle is changed from whatever it was to [0:2*pi].
  1955. X
  1956. X The command 'set nopolar' changes the meaning of the plot back
  1957. X to the default rectangular coordinate system.  The domain of
  1958. X x is changed from whatever it was to [-10:10].
  1959. X
  1960. X While in polar coordinates the meaning of an expression in x
  1961. X is really r = f(x), where x is an angle of rotation.  The plot,
  1962. X however, is plotted on a rectangular grid.  Thus the displayed
  1963. X ranges of x and y are rectanglar values, while the command
  1964. X 'set xrange' refers to polar values.
  1965. X
  1966. X Syntax:
  1967. X         set polar
  1968. X      set nopolar
  1969. X      show polar
  1970. X2 offsets
  1971. X The amount of the graph that the plot takes up may be controlled
  1972. X to some extent with the 'set offsets' command.  This command takes
  1973. X four arguments--left offset, right offset, top offset and bottom
  1974. X offset.  By default, each offset is 0.  Left and right offsets are
  1975. X given in units of the x axis, while top and bottom offsets are
  1976. X given in units of the y axis.  The plot of sin(x), displayed with
  1977. X offsets of 0, 0, 2, 2 will take up  1/3 of the displayed y axis.
  1978. X Offsets are particularly useful with polar coordinates as a means
  1979. X of compensating for aspect ratio distortion.
  1980. X
  1981. X Syntax:
  1982. X         set offsets <expr>, <expr>, <expr>, <expr>
  1983. X         show offsets
  1984. X2 output
  1985. X By default, plots are displayed to the standard output.  The
  1986. X 'set output' command redirects the displays to the specified file or
  1987. X device.
  1988. X
  1989. X Syntax:
  1990. X         set output {filename}
  1991. X         show output
  1992. X
  1993. X The filename must be enclosed in quotes.  If the filename is
  1994. X omitted, output will be sent to the standard output.
  1995. X2 samples
  1996. X The sampling rate of functions may be changed by the 'set samples'
  1997. X command.  By default, sampling is set to 160 points.  A higher
  1998. X sampling rate will produce more accurate plots, but will take
  1999. X longer.  In generating plots, GNUPLOT will use either the sampling
  2000. X rate set or the resolution of the current output device, whichever
  2001. X is lower.
  2002. X
  2003. X Syntax:
  2004. X         set samples <expression>
  2005. X         show samples
  2006. X2 style
  2007. X Plots may be displayed in one of three styles: 'lines', 'points', or
  2008. X 'impulses'.  The 'lines' style connects adjacent points with lines.
  2009. X The 'points' style displays a small symbol at each point.  The
  2010. X 'impulses' style displays a vertical line from the X axis to each
  2011. X point.
  2012. X
  2013. X Default styles are chosen with the 'set function style' and 'set
  2014. X data style' commands.  See 'plot' for information about how to
  2015. X override the default plotting style for individual functions.
  2016. X
  2017. X Syntax:
  2018. X         set function style <style>
  2019. X         set data style <style>
  2020. X         show function style
  2021. X         show data style
  2022. X
  2023. X Where style is either 'lines', 'points', or 'impulses'.
  2024. X2 terminal
  2025. X GNUPLOT supports many different graphics devices.  Use the 'set
  2026. X terminal' command to select the type of device for which GNUPLOT
  2027. X will produce output.   While your installation may not include all
  2028. X of these, the following were available in the source code at the
  2029. X time this help file was written:
  2030. X
  2031. X Machines:  IBM-PC's (ega, cga, hercules), ATT6300, CORONA325,
  2032. X            UNIXPC (att7300 or 3b1);
  2033. X Terminals: AED512, AED767, HP2623A, HP7580B, REGIS, SELENAR,
  2034. X            TEK40xx, BBN Bitgraph;
  2035. X Printers:  LASERJET1, LASERJET2, LASERJET3, POSTSCRIPT, QMS,
  2036. X            VECTRIX384;
  2037. X Other:     UNIXPLOT.
  2038. X
  2039. X Syntax:
  2040. X         set terminal {terminal-type}
  2041. X         show terminal
  2042. X
  2043. X If <terminal-type> is omitted, GNUPLOT will list the available
  2044. X terminal types.  <terminal-type> may be abbreviated.
  2045. X
  2046. X Use 'set output' to redirect this output to a file or device.
  2047. X2 variables
  2048. X The 'show variables' command lists all user-defined variables and
  2049. X their values.
  2050. X
  2051. X Syntax:
  2052. X         show variables
  2053. X2 version
  2054. X Show the current version of gnuplot.  This is the same text
  2055. X that appears when gnuplot starts up.  (There is no SET VERSION
  2056. X command, of course.)
  2057. X
  2058. X Syntax:
  2059. X     SHOW VERSION
  2060. X2 xrange
  2061. X The 'set xrange' command sets the horizontal range which will be
  2062. X displayed.
  2063. X
  2064. X This range may also be specified on the 'plot' command line.
  2065. X
  2066. X Syntax:
  2067. X         set xrange [{xmin : xmax}]
  2068. X
  2069. X Where <xmin> and <xmax> terms are expressions or constants.
  2070. X
  2071. X Both the <xmin> and <xmax> terms are optional.
  2072. X2 yrange
  2073. X The 'set yrange' command sets the vertical range which will be
  2074. X displayed.  This command turns autoscaling OFF.
  2075. X
  2076. X This range may also be specified on the 'plot' command line.
  2077. X
  2078. X Syntax:
  2079. X         set yrange [{ymin : ymax}]
  2080. X
  2081. X Where <ymin> and <ymax> terms are expressions or constants.
  2082. X
  2083. X Both the <ymin> and <ymax> terms are optional.
  2084. X2 zero
  2085. X GNUPLOT will not plot a point if its imaginary part is greater in
  2086. X magnitude than the 'zero' threshold.  The default 'zero' value is
  2087. X 1e-8.
  2088. X
  2089. X Syntax:
  2090. X         set zero <expression>
  2091. X         show zero
  2092. X1 shell
  2093. X The 'shell' command spawns an interactive shell.  To return to
  2094. X GNUPLOT, type 'logout' if using VMS, 'exit' or your END-OF-FILE
  2095. X character if using Unix, or 'exit' if using MS-DOS.
  2096. X
  2097. X A single shell command may be spawned by preceding it with the !
  2098. X character ($ if using VMS) at the beginning of a command line.
  2099. X Control will return immediately to GNUPLOT after this command is
  2100. X executed.  For example,
  2101. X
  2102. X      ! dir
  2103. X
  2104. X prints a directory listing and then returns to GNUPLOT.
  2105. X1 start_up
  2106. X When GNUPLOT is run, it looks for an initialization file to load.
  2107. X This file is called '.gnuplot' on Unix systems, and 'GNUPLOT.INI' on
  2108. X other systems.  If this file is not found in the current directory,
  2109. X the program will look for it in your home directory (under MS-DOS, the
  2110. X environment variable GNUPLOT should contain the name of this
  2111. X directory).
  2112. X
  2113. X If this file is found, GNUPLOT executes the commands in this file.
  2114. X This is most useful for setting your terminal type and defining any
  2115. X functions or variables which you use often.  The variable 'pi' is
  2116. X already defined for you.
  2117. X1 substitution
  2118. X Command-line substitution is specified by a system command enclosed in
  2119. X backquotes (`).  This command is spawned and the output it produces
  2120. X replaces the name of the command (and backquotes) on the command line.
  2121. X
  2122. X Newlines in the output produced by the spawned command are replaced with
  2123. X blanks.
  2124. X
  2125. X Command-line substitution can be used anywhere on the GNUPLOT command
  2126. X line.
  2127. X
  2128. X
  2129. X Example:
  2130. X
  2131. X This will run the program 'leastsq' and substitute `leastsq` on the
  2132. X command line with its output:
  2133. X
  2134. X  f(x) = `leastsq`
  2135. X
  2136. X or, in VMS
  2137. X
  2138. X  f(x) = `run leastsq`
  2139. X1 user_defined
  2140. X You may define your own functions and variables.  User-defined
  2141. X functions and variables may be used anywhere.
  2142. X
  2143. X User-defined function syntax:
  2144. X     <function-name> ( <dummy-var> ) =  <expression>
  2145. X
  2146. X Where <expression> is defined in terms of <dummy-var>.
  2147. X
  2148. X User-defined variable syntax:
  2149. X     <variable-name> = <constant-expression>
  2150. X
  2151. X Examples:
  2152. X     w = 2
  2153. X     q = floor(tan(pi/2 - 0.1))
  2154. X     f(x) = sin(w*x)
  2155. X     sinc(x) = sin(pi*x)/(pi*x)
  2156. X     delta(t) = (t == 0)
  2157. X     ramp(t) = (t > 0) ? t : 0
  2158. X
  2159. X The variable 'pi' is already defined for you.
  2160. X
  2161. X See 'show functions' and 'show variables'.
  2162. END_OF_FILE
  2163. if test 19621 -ne `wc -c <'docs/gnuplot.hlp'`; then
  2164.     echo shar: \"'docs/gnuplot.hlp'\" unpacked with wrong size!
  2165. fi
  2166. # end of 'docs/gnuplot.hlp'
  2167. fi
  2168. echo shar: End of archive 6 \(of 7\).
  2169. cp /dev/null ark6isdone
  2170. MISSING=""
  2171. for I in 1 2 3 4 5 6 7 ; do
  2172.     if test ! -f ark${I}isdone ; then
  2173.     MISSING="${MISSING} ${I}"
  2174.     fi
  2175. done
  2176. if test "${MISSING}" = "" ; then
  2177.     echo You have unpacked all 7 archives.
  2178.     rm -f ark[1-9]isdone
  2179. else
  2180.     echo You still need to unpack the following archives:
  2181.     echo "        " ${MISSING}
  2182. fi
  2183. ##  End of shell archive.
  2184. exit 0
  2185.